/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UserInterface;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JLabel;

/**
 *
 * @author Home
 */
public class SP2 implements Runnable {

    JLabel jl;

    public SP2(JLabel jl) {
        this.jl = jl;
    }

    public void run() {
        while (true) {
            jl.setVisible(true);
            try {
                Thread.sleep(500);
            } catch (InterruptedException ex) {
                Logger.getLogger(SP2.class.getName()).log(Level.SEVERE, null, ex);
            }
            jl.setVisible(false);
            try {
                Thread.sleep(500);
            } catch (InterruptedException ex) {
                Logger.getLogger(SP2.class.getName()).log(Level.SEVERE, null, ex);
            }
        }


    }
}
